package com.lanou.zhihu.service.impl;

import com.lanou.zhihu.entity.Answer;
import com.lanou.zhihu.entity.Question;
import com.lanou.zhihu.mapper.Attention_issue_Mapper;
import com.lanou.zhihu.service.Attention_issue_Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by QuChao on 2018/11/2.
 */
@Service
public class Attention_issue_ServiceImpl implements Attention_issue_Service {
    @Autowired
    public Attention_issue_Mapper attentionIssueMapper;

    @Override
    public int findAttention(Integer id) {
        int a = attentionIssueMapper.findAttention(id);
        return a;
    }

    @Override
    public int findAnswer(Integer id) {
        int a = attentionIssueMapper.findAnswer(id);
        return a;
    }

    @Override
    public List<Answer> findUserIssue(Integer id) {
        return attentionIssueMapper.findUserIssue(id);
    }

    @Override
    public List<Question> userQuiz(Integer id) {
        return attentionIssueMapper.userQuiz(id);
    }
}
